<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>耗材库存明细</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.pager.js"></script>
</head>
<body class="list">
	<div class="bar">
		耗材库存明细表&nbsp;总记录数: ${pager.totalCount} (共${pager.pageCount}页)
	</div>
	<div class="body">
		<form id="listForm" action="list" method="post">
			<div class="listBar">
				&nbsp;&nbsp;
				<label style="font-weight:bold;">名称: </label>
				<input type="hidden" name="propertyList" value="propertyName"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text" name="keywordList" value="${(pager.keywordList[0])!}" />
				<label style="font-weight:bold;">型号规格: </label>
				<input type="hidden" name="propertyList" value="specificationType"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text" name="keywordList" value="${(pager.keywordList[1])!}" />
				
				<input type="button" id="searchButton" class="formButton" value="搜 索" hidefocus />
				&nbsp;&nbsp;
				<label>每页显示: </label>
				<select name="pageSize" id="pageSize">
					<option value="10"<#if pager.pageSize == 10> selected</#if>>
						10
					</option>
					<option value="20"<#if pager.pageSize == 20> selected</#if>>
						20
					</option>
					<option value="50"<#if pager.pageSize == 50> selected</#if>>
						50
					</option>
					<option value="100"<#if pager.pageSize == 100> selected</#if>>
						100
					</option>
				</select>
			</div>
			<table id="listTable" class="listTable">
				<tr>
					<th class="check">
						<input type="checkbox" class="allCheck" />
					</th>
					<th>
						<a href="#" class="sort" name="sn" hidefocus>物品编号</a>
					</th>
					<th>
						<a href="#" class="sort" name="name" hidefocus>物品名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="date" hidefocus>生产日期</a>
					</th>
					<th>
						<a href="#" class="sort" name="standard" hidefocus>型号规格</a>
					</th>
					<th>
						<a href="#" class="sort" name="unit" hidefocus>计量单位</a>
					</th>
					<th>
						<a href="#" class="sort" name="position" hidefocus>保存位置</a>
					</th>
					<th>
						<a href="#" class="sort" name="limit" hidefocus>保存年限</a>
					</th>
					<th>
						<a href="#" class="sort" name="place" hidefocus>产地</a>
					</th>
					<th>
						<a href="#" class="sort" name="inCount" hidefocus>入库数</a>
					</th>
					<th>
						<a href="#" class="sort" name="outCount" hidefocus>出库数</a>
					</th>
					<th>
						<a href="#" class="sort" name="count" hidefocus>库存数</a>
					</th>
				</tr>
				<#list pager.result as consumable>
					<tr>
						<td>
							<input type="checkbox" name="ids" value="${consumable.id}" />
						</td>
						<td>
							${consumable.sn}
						</td>
						<td>
							${consumable.name}
						</td>
						<td>
							${consumable.date}
						</td>
						<td>
							${consumable.standard}
						</td>
						<td>
							${consumable.unit}
						</td>
						<td>
							${consumable.position}
						</td>
						<td>
							${consumable.limit}
						</td>
						<td>
							${consumable.place}
						</td>
						<td>
							${consumable.inCount}
						</td>
						<td>
							${consumable.outCount}
						</td>
						<td>
							${consumable.count}
						</td>
					</tr>
				</#list>
			</table>
			<#if (pager.result?size > 0)>
				<div class="pagerBar">
					<div class="pager">
						<#include "admin/pager.ftl" />
					</div>
				<div>
			<#else>
				<div class="noRecord">没有找到任何记录!</div>
			</#if>
		</form>
	</div>
</body>
</html>